import i18n from '@/lang'
export const columns = [
  {
    title: i18n.t('userName'),
    dataIndex: 'name',
    scopedSlots: { customRender: 'userName' },
    width: 200
  },
  {
    title: i18n.t('loginAccount'),
    dataIndex: 'account',
    scopedSlots: { customRender: 'account' },
    width: 150
  },
  {
    title: i18n.t('userEmail'),
    dataIndex: 'email',
    scopedSlots: { customRender: 'email' },
    width: 200
  },
  {
    title: i18n.t('电话'),
    dataIndex: 'phone',
    scopedSlots: { customRender: 'phone' },
    width: 200
  },
  {
    title: i18n.t('岗位'),
    dataIndex: 'position',
    scopedSlots: { customRender: 'position' },
    width: 200
  },
  {
    title: i18n.t('relatedModel'),
    dataIndex: 'modelCount',
    scopedSlots: { customRender: 'relatedModel' },
    width: 100
  },
  {
    title: i18n.t('org'),
    dataIndex: 'organizationName',
    scopedSlots: { customRender: 'org' },
    width: 150
  },
  {
    title: i18n.t('userAccountStatus'),
    dataIndex: 'locked',
    scopedSlots: { customRender: 'status' },
    width: 100
  },
  {
    title: i18n.t('onlineState'),
    dataIndex: 'onlineStatus',
    scopedSlots: { customRender: 'onlineStatus' },
    align: 'center',
    width: 160
  },
  {
    title: i18n.t('remark'),
    dataIndex: 'remark',
    scopedSlots: { customRender: 'remark' },
    width: 200
  },
  {
    title: i18n.t('operation'),
    dataIndex: 'action',
    scopedSlots: { customRender: 'action' },
    width: 280,
    fixed: 'right'
  }
]
export const showRelatedModelColumns = [
  {
    title: i18n.t('modelCode'),
    dataIndex: 'code',
    scopedSlots: { customRender: 'modelCode' },
    width: 300
  },
  {
    title: i18n.t('modelName'),
    dataIndex: 'name',
    scopedSlots: { customRender: 'modelName' },
    width: 400
  },
  {
    title: i18n.t('stereotype'),
    dataIndex: 'trimLevel',
    scopedSlots: { customRender: 'stereotype' },
    width: 300
  }
]
